import { createApp } from 'vue'
import App from './App.vue'

// 导入Element Plus和样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 导入Element Plus的消息和消息框组件
import { ElMessage, ElMessageBox } from 'element-plus'

const app = createApp(App)

// 使用Element Plus
app.use(ElementPlus)

// 将ElMessage和ElMessageBox挂载到全局
app.config.globalProperties.$message = ElMessage
app.config.globalProperties.$confirm = ElMessageBox.confirm

app.mount('#app')